package main

import (
	"dy/internal/api"
	"dy/internal/configs/config"
	"fmt"
	"os"
)

func main() {
	fmt.Println("api running")
	dir, err := os.Getwd()
	if err != nil {
		panic(err)
	}
	config.Init(dir + "/internal/configs/config.json")
	router := api.RouterInit()
	router.Run(":" + config.Conf.UserWeb.ApiPort)
}
